import Player from "../player/Player";
import { GamePropType } from "./GameEnum";

/**
 * 一局游戏的预定义信息
 */
export default class GameData {

    constructor(roleId: number,) {
        this.self = {
            roleId: roleId,
            nikeName: "自己",
            props: []
        }
        this.self.props.length = 18
        this.self.props.fill(0);
        this.enemy = [];
        this.deathRank = [];
    }

    self: { roleId: number, nikeName: string, props: GamePropType[] };

    /**
     * 敌人信息
     */
    enemy: {
        hide: boolean; //是否隐藏，用于1V1或人数模式
        roleId: number;
        nikeName: string;
        props: GamePropType[]
    }[];

    deathRank: Player[]
}